package com.cd.university.controller.form;

import lombok.Data;

import javax.validation.constraints.Pattern;

/**
 * @author 陈栋
 * @create 2021/9/26 17:16
 */
@Data
public class RoleForm {
    /**
     * 主键，角色id，自增约束
     */
    private Integer roleId;

    /**
     * 角色名
     */
    @Pattern(regexp = "[\u4e00-\u9fa5]",message = "只能传入汉字")
    private String roleName;
}
